﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EditStaffProfile.aspx.cs" Inherits="FYPHP.EditStaffProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style1
        {
            width: 262px;
        }
        .style2
        {
            width: 250px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
        <tr>
            <td class="style6">
                <strong>My profile picture:</strong><br />
                <br />
                <img src="\uploads\products\<% Response.Write(return_userpicture()); %>" alt="" height=200px width=200px />
        &nbsp;&nbsp;

            </td>
            <td>
                <div style="margin: 0 auto; width: 650px">
                    <table border="1" cellpadding="10" cellspacing="10" style="width: 630px; border-collapse: collapse; border-color: #aaaaaa;">
                        <tr>
                            <td colspan="2">
                                <span class="style1"><strong>Personal Information</strong></span></td>
                        </tr>
                        <tr>
                            <td class="style2">
        UserName:</td>
                            <td>
                                <asp:Label ID="lblName" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
        IC:</td>
                            <td class="style9">
                                <br />
                                <asp:TextBox ID="txtIC" runat="server"></asp:TextBox>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                Age:</td>
                            <td>
                                <asp:TextBox ID="txtAge" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                Gender</td>
                            <td class="style4">
                                <asp:RadioButtonList ID="rblGender" runat="server" 
            RepeatDirection="Horizontal">
                                    <asp:ListItem Selected="True">Male</asp:ListItem>
                                    <asp:ListItem>Female</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                Address:</td>
                            <td>
                                <asp:TextBox ID="txtAdd1" runat="server" Width="218px"></asp:TextBox>
                                <br />
                                <br />
                                <asp:TextBox ID="txtAdd2" runat="server" Width="217px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                Postcode:</td>
                            <td>
                                <asp:TextBox ID="txtPostCode" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                City:</td>
                            <td>
                                <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                State:</td>
                            <td>
                                <asp:TextBox ID="txtState" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                Country:</td>
                            <td>
                                <asp:TextBox ID="txtCountry" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                Phone No.:</td>
                            <td>
                                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                Email:</td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                       
                        <tr>
                            <td>
                                Change new profile picture :</td>
                            <td>
                                <asp:FileUpload id="FileUpload1"                 
           runat="server"></asp:FileUpload>
                                <asp:Button id="UploadButton" Text="Upload file" OnClick="UploadButton_Click" runat="server">
                                </asp:Button>
       &nbsp;<br />
                                <asp:Label id="UploadStatusLabel" runat="server">
       </asp:Label>
                                <asp:Label ID="imgName" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
